package com.chen.mapper;

import com.chen.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserMapper {
    List<User> selectAll();

    Integer insertUser(User user);

    Integer updateById(User user);

    Integer deleteById(Long id);

    List<User> selectByName(String name);
}
